

	<div class="index-cloud-nav" id="indexNav">
			<div class="index-cloud-bg"></div>
			<ul>
				<?php
				 $count = 0;
				 foreach($index_data as $ModuleID => $modelData){
				 	$count++;
			    ?>
				<li>
					<?php echo $count; ?>F
					<span><?php echo $modelData['Title'] ?></span>
				</li>
				<?php } ?>
				<li style="text-align: center;border: none;"><a href="javascript:void(0)">返回顶部</a></li>
			</ul>
	</div>
<div id="indexNavR" style="left: 1557px; opacity: 1;">
		<ul>
<!-- 			<li>
				<a href="" class="nav-r-1"></a>
			</li>
			<li>
				<a href="" class="nav-r-2"></a>
			</li>
			<li>
				<a href="" class="nav-r-3"></a>
			</li>
			<li>
				<a href="" class="nav-r-4"></a>
			</li>
			<li>
				<a href="" class="nav-r-5"></a>
			</li> -->
		</ul>
	</div>


	<!-- 导航详情内容及图片模块 -->
	<div class="index-nav-content clearfix">
		<div class="index-nav-l">
			<?php foreach($signMenu as $rss){  ?>
				<dl>
					<dt><a target="_blank" href="<?php echo $this->createUrl('/front/index/goods', array('cid' => $rss['CatID']))  ?>"><?php  echo $rss['Title'] ?></a></dt>
					<dd>
						<?php  if(isset($rss['data'])){  ?>
						<?php foreach($rss['data'] as $rs){  ?>
							<a target="_blank" href="<?php echo $this->createUrl('/front/index/goods', array('cid' => $rs['CatID']))  ?>"><?php  echo $rs['Title'] ?></a>
<!--                             <?php if($rs['StartTime'] >= TIME_TIME){ ?>
                                <span>还有<?php echo Tool::getDataTime($rs['StartTime'] - TIME_TIME)  ?>秒开始</span>
                            <?php  }else{ ?>
                                <span>剩余<?php echo Tool::getDataTime($rs['EndTime']-TIME_TIME);  ?></span>
                            <?php } ?>  -->     
							
						<?php  }} ?>
					</dd>
				</dl>
			<?php  } ?>
		</div>
		<div class="index-nav-r clearfix">
			<div class="index-nav-r1 clearfix">
				<div class="index-nav-r1-t">
					<?php 
					 $ad0_count = 0;
					foreach($ad[0] as $ad_index){
						$ad0_count++;
				    ?>

					<a href="<?php echo $ad_index['Url']; ?>">
						<img src="<?php  echo Yii::app()->params->fileUrl . $ad_index['Image']; ?>" alt="<?php echo $ad_index['Title']; ?>">
					</a>	

					<?php  } ?>

				
					<div class="d2" id="banner_id">
						<ul>
							<?php for ($i=0; $i < $ad0_count; $i++) { 
								echo '<li></li>';
							}  ?>
						</ul>
					</div>

				</div>



				<div class="index-nav-r1-b clearfix">
					<?php foreach($ad[1] as $AdvertisingID => $arrD){ ?>
						<a target="_blank" href="<?php echo $arrD['Url']  ?>">
							<img src="<?php  echo Yii::app()->params->fileUrl . $arrD['Image']; ?>" alt="<?php echo $arrD['Title']; ?>">
						</a>						
					<?php } ?>

				</div>
			</div>
			<div class="index-nav-r2">
					<?php foreach($ad[2] as $AdvertisingID => $arrD){ ?>
						<a target="_blank" href="<?php echo $arrD['Url']  ?>"><img src="<?php  echo Yii::app()->params->fileUrl . $arrD['Image']; ?>" alt="<?php echo $arrD['Title']; ?>"></a>						
					<?php } ?>
			</div>
		</div>
	</div>

	<!-- 中部花纹背景 -->
	<div class="index-icon-bg">
		<div>
			<img src="<?php  echo yii::app()->theme->baseUrl ?>/assets/images/index_logo_img.png" alt="妈咪街">
			
		</div>
	</div>


	<!-- 以下是美丽心得开始的模块 -->
	<div class="index-wrapper" id="indexWrapper">
		<!-- 左侧导航模块 -->
		<div class="index-box">
			<div class="index-box-ad">
				<!-- 左侧图片轮播模块 -->
				<div class="index-box-ad-l">
					<div class="index-box-ad-content">
						<?php
						  $box_count = 0;
						 foreach($carousel['data'] as $GoodsID => $arrData){
						 	
						 	if($box_count%3 == 0){
						 		echo '<ul>';
						 	}

						?>

							<li>
								<div><a  target="_blank" href="<?php echo $this->createUrl('/front/goods/detail', array('gid' => $arrData['GoodsID'])) ?>"><?php echo mb_substr($arrData['GoodsName'], 0, 12, 'utf-8');  ?></a></div>
								<dl>
									<dt><a  target="_blank" href="<?php echo $this->createUrl('/front/goods/detail', array('gid' => $arrData['GoodsID'])) ?>"><img src="<?php echo $arrData['Image'];  ?>" alt="<?php echo $arrData['GoodsName'];  ?>"></a></dt>
									<dd>
										<a  target="_blank" href="<?php echo $this->createUrl('/front/goods/detail', array('gid' => $arrData['GoodsID'])) ?>"><span>￥</span>
											<strong><?php echo $arrData['PromoPrice'];  ?></strong></a>
									</dd>
								</dl>
							</li>

						
						<?php

						 	if($box_count%3 == 2){
						 		echo '</ul>';
						 	}
						 	$box_count++;						
						  } 
						?>
						
					</div>
				</div>
				<div id="arrowLeft"></div>
				<div id="arrowRight"></div>
				
				<!-- 右侧图片详情模块 -->
				<div class="index-box-ad-r">
					<a href="" target="_blank" class="index-bar">
						<div class="index-ad-arrow"></div>
						<p>More</p>
					</a>
					<div class="index-box-ad-z">
						<a href=""><img src="<?php  echo yii::app()->theme->baseUrl ?>/assets/images/index3.jpg" alt=""></a>
					</div>
					<div class="index-box-ad-y">
						<div class="index-box-y">
							<dl class="clearfix">
								<dt><a href><img src="<?php  echo yii::app()->theme->baseUrl ?>/assets/images/index1.jpg" alt=""></a></dt>
								<dd>
									<h3><a href=""><?php echo $article[0]['Title']  ?></a></h3>
									<p><a href=""><?php echo strip_tags(mb_substr($article[0]['Contnet'],0,50,'utf-8'));  ?>......</a></p>
								</dd>
							</dl>
							<dl class="clearfix">
								<dt><a href=""><img src="<?php  echo yii::app()->theme->baseUrl ?>/assets/images/index2.jpg" alt=""></a></dt>
								<dd>
									<h3><a href=""><?php echo $article[1]['Title']  ?></a></h3>
									<p><a href=""><?php echo strip_tags(mb_substr($article[1]['Contnet'],0,50,'utf-8'));  ?>......</a></p>
								</dd>
							</dl>
						</div>
					</div>
				</div>
			</div>
		</div>

		<!-- 美丽心得模块 -->
		<!-- 楼层模块 -->
		<div class="index-floor">
			<?php 
			$count = 0;
			foreach($index_data as $ModuleID => $arrModuleData){ 
				$count++;
			 ?>
			 <div class="index-floor1" id="floor<?php echo $count; ?>">
				<div class="index-floor1-tit clearfix">
					<h2><?php echo $count ?>F <?php echo $arrModuleData['Title'] ?></h2>
					<span><?php echo $arrModuleData['Brief'] ?></span>
					<strong></strong>
					<a href="<?php echo $this->createUrl('/front/index/goods', array('mid' => $ModuleID)) ?>" title="">更多</a>
				</div>
				<div class="index-floor1-content">
					<ul class="clearfix index-floor1-hover">
						<?php  
						$level_count = 0;
						foreach($arrModuleData['category'] as $CatID => $title){
							$level_count++;
						?>

							<li cid="<?php  echo $CatID; ?>" mid="<?php  echo $ModuleID; ?>" id="hover<?php echo $level_count; ?>"><?php echo $title; ?></li>


						<?php  } ?>



						<?php  
						$level_count = 0;
						foreach($arrModuleData['category'] as $title){
							$level_count++;
						?>
							<a href="" id="floor1-hover<?php echo $level_count; ?>"><?php echo $title; ?></a>
						<?php  } ?>
					</ul>
					<div mid="<?php  echo $ModuleID; ?>" class="index-floor1-info">
						<?php  
						$level_count = 0;
						foreach($arrModuleData['data'] as $CatID => $arrTagData){
							$level_count++;
						?>
							<?php if($level_count == 1){  ?>
								<div cid="<?php  echo $CatID; ?>" mid="<?php  echo $ModuleID; ?>" class="floorone-price-init floorone-price clearfix" >									
									<?php 
									if(!empty($arrTagData['data']['data'])){
										$data = $arrTagData['data']['data'];
										include $this->getViewFile('indexdata');
									}
									?>
								</div>
							<?php }else{ ?>
								<div cid="<?php  echo $CatID; ?>" mid="<?php  echo $ModuleID; ?>" class="floorone-price clearfix index-floor1-hidden" ></div>

							<?php }  ?>



								


						<?php  } ?>

					</div>



			 	</div>
			</div>
			<?php  } ?>
		</div>	
	</div>	


		<script src="<?php echo yii::app()->theme->baseUrl;  ?>/assets/js/mamijie.js"></script>

		<script type="text/javascript">
			$(function(){

/*				var init_floorone = $(".floorone-price-init");
				var len = init_floorone.length;
				for(i=0;i<len;i++){
					if(init_floorone.eq(i).find('dl').length == 0){
						var cid = init_floorone.eq(i).attr('cid');
						var mid = init_floorone.eq(i).attr('mid');	
						$.post('<?php echo $this->createUrl("mcindex");  ?>',{cid:cid,mid:mid},function(data){
							if(data.status){
								console.log(data.content);
								init_floorone.eq(i).html(data.content);
							}

						},'json');						
					}
				}*/

				$(".index-floor1-hover li").mouseenter(function(){
					var cid = $(this).attr('cid');
					var mid = $(this).attr('mid');
					var obj = $(".floorone-price[cid="+cid+"][mid="+mid+"]");
					var obj_this = $(this);
					if((obj).find('dl').length > 0){


						var index = obj_this.index();
				        var i = obj_this.parents(".index-floor1").index();
				        $(".index-floor1-hover").eq(i).children("a").css({
							"display" : "none"
						});
				        $(".index-floor1-hover").eq(i).children("a").eq(index).css({
							"display" : "block"
						});
				        $(".index-floor1-hover").eq(i).siblings().children(".floorone-price").addClass("index-floor1-hidden");
				        $(".index-floor1-hover").eq(i).siblings().children(".floorone-price").eq(index).removeClass("index-floor1-hidden");



						return true;
					}
					$.post('<?php echo $this->createUrl("mcindex");  ?>',{cid:cid,mid:mid},function(data){
						if(data.status){
							obj.html(data.content);
						}

						var index = obj_this.index();
				        var i = obj_this.parents(".index-floor1").index();
				        $(".index-floor1-hover").eq(i).children("a").css({
							"display" : "none"
						});
				        $(".index-floor1-hover").eq(i).children("a").eq(index).css({
							"display" : "block"
						});
				        $(".index-floor1-hover").eq(i).siblings().children(".floorone-price").addClass("index-floor1-hidden");
				        $(".index-floor1-hover").eq(i).siblings().children(".floorone-price").eq(index).removeClass("index-floor1-hidden");



					},'json');
					
				})
			})
		</script>
	